#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QSqlTableModel>
#include "logindialog.h"
namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    void SetUserTableStytle();

    ~MainWindow();
public slots:
    void on_pushButtonAddUser_clicked();

    void updateUserTable();

    void on_pushButtonDeleteUser_clicked();

    void showSetPage();
private:
    Ui::MainWindow *ui;
    loginDialog *mLoginDialog;
    QSqlTableModel *model;
};

#endif // MAINWINDOW_H
